// @ts-ignore
/* eslint-disable */
import { request } from '@umijs/max';

/** addUserClassRelation POST /api/userClassRelation/add */
export async function addUserClassRelationUsingPost(
  body: API.UserClassRelationAddRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseLong_>('/api/userClassRelation/add', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** dayNewlyAddedUserClassRelation POST /api/userClassRelation/day/newly/added */
export async function dayNewlyAddedUserClassRelationUsingPost(options?: { [key: string]: any }) {
  return request<API.BaseResponseListDataGroupByDateDTO_>(
    '/api/userClassRelation/day/newly/added',
    {
      method: 'POST',
      ...(options || {}),
    },
  );
}

/** deleteUserClassRelation POST /api/userClassRelation/delete */
export async function deleteUserClassRelationUsingPost(
  body: API.DeleteRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseBoolean_>('/api/userClassRelation/delete', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** editUserClassRelation POST /api/userClassRelation/edit */
export async function editUserClassRelationUsingPost(
  body: API.UserClassRelationEditRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseBoolean_>('/api/userClassRelation/edit', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** getUserClassRelationVOById GET /api/userClassRelation/get/vo */
export async function getUserClassRelationVoByIdUsingGet(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.getUserClassRelationVOByIdUsingGETParams,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseUserClassRelationVO_>('/api/userClassRelation/get/vo', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** joinUserClassRelation POST /api/userClassRelation/join */
export async function joinUserClassRelationUsingPost(
  body: API.UserClassRelationAddRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseLong_>('/api/userClassRelation/join', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** listUserClassRelationByPage POST /api/userClassRelation/list/page */
export async function listUserClassRelationByPageUsingPost(
  body: API.UserClassRelationQueryRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponsePageUserClassRelation_>('/api/userClassRelation/list/page', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** listUserClassRelationVOByPage POST /api/userClassRelation/list/page/vo */
export async function listUserClassRelationVoByPageUsingPost(
  body: API.UserClassRelationQueryRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponsePageUserClassRelationVO_>('/api/userClassRelation/list/page/vo', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** listUserIdListByClassIdList POST /api/userClassRelation/list/user */
export async function listUserIdListByClassIdListUsingPost(
  body: API.UserQueryByClassRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseListLong_>('/api/userClassRelation/list/user', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** listMyUserClassRelationVOByPage POST /api/userClassRelation/my/list/page/vo */
export async function listMyUserClassRelationVoByPageUsingPost(
  body: API.UserClassRelationQueryRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponsePageUserClassRelationVO_>(
    '/api/userClassRelation/my/list/page/vo',
    {
      method: 'POST',
      headers: {
        'Content-Type': 'application/json',
      },
      data: body,
      ...(options || {}),
    },
  );
}

/** updateUserClassRelation POST /api/userClassRelation/update */
export async function updateUserClassRelationUsingPost(
  body: API.UserClassRelationUpdateRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseBoolean_>('/api/userClassRelation/update', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
